package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.entity.CmsBanner;
import com.project.pojo.model.GetCmsCapitalFlowModel;
import com.project.pojo.model.QueryBannerModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description:
 * @author: longer
 * @create: 2020-12-18 17:50
 **/
@Mapper
public interface CmsBannerMapper extends BaseMapper<CmsBanner> {

    /**
     * 按条件查询banner
     * @param page
     * @param queryBannerModel
     * @return
     */
    IPage<CmsBanner> getBannerList(Page<CmsBanner> page, @Param("model") QueryBannerModel queryBannerModel);



}
